﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {

    public class TUpdateEnergy extends TFarmTransaction {

        override public function perform():void{
            signedCall("UserService.updateEnergy");
        }
        override protected function onComplete(_arg1:Object):void{
            super.onComplete(_arg1);
            var _local2:Object = TFarmTransaction.m_gamedata;
            if (_local2 != null){
                Global.player.setEnergyFromServer(_local2.energy, _local2.energyMax, _local2.lastEnergyCheck);
            } else {
                if (Config.DEBUG_MODE){
                };
            };
        }

    }
}//package Transactions 
